import 'package:freezed_annotation/freezed_annotation.dart';

part 'EventDto.g.dart';

///EventDto
@JsonSerializable()
class EventDto {
  @JsonKey(name: "activityIntegral")
  int? activityIntegral;
  @JsonKey(name: "detail")
  String? detail;
  @JsonKey(name: "endDate")
  String? endDate;
  @JsonKey(name: "imageUrl")
  String? imageUrl;
  @JsonKey(name: "rountName")
  String? rountName;
  @JsonKey(name: "startDate")
  String? startDate;
  @JsonKey(name: "subTitle")
  String? subTitle;
  @JsonKey(name: "title")
  String? title;

  EventDto({
    this.activityIntegral,
    this.detail,
    this.endDate,
    this.imageUrl,
    this.rountName,
    this.startDate,
    this.subTitle,
    this.title,
  });

  factory EventDto.fromJson(Map<String, dynamic> json) => _$EventDtoFromJson(json);

  Map<String, dynamic> toJson() => _$EventDtoToJson(this);
}
